<%
/**
 * js for window for example: window.open()
 * Copyright: Copyright (c) 2004
 * Company: willstar
 * @ $Author: amon_lei $
 * @ $Date: 2005/01/10 15:12:27 $
 * @ $Revision: 1.4 $ 
 * @ created in 2004-12-27
 */
%>
<script>
        /**
         * for 地址本
         * 特点: 居中,无状态栏,无工具条
         */
         function openWinForAList(url,winName)
         {
               var height = 480;
               var width = 520;
               var option = "height=" + height + ", width=" + width + ",toolbar=no,menubar=no,left="+(window.screen.width- width)/2+",top="+(window.screen.height-height)/2; 
               return window.open(url,winName,option); 
         }

         /**
          * for logo列表
          *　特点：举重，无状态栏,无工具条
          * return logo File Name
          */
          function openWinForLogo(url,winName)
          { 
               var height = window.screen.height/2;
               var width = window.screen.width/2;
               url = url + "&frameWidth=" + eval(width - 20) +"&frameHeight=" +　eval(height - 100);
               var option = "height=" + height + ", width=" + width + ",toolbar=no,menubar=no,left="+(window.screen.width- width)/2+",top="+(window.screen.height-height)/2; 
               return window.open(url,winName,option); 
          }

        /**
         * 特点: 居中,无状态栏,无工具条
         */
         function openWinForRADetail(url,winName)
         {
                var height = window.screen.height*9/10;
               var width = window.screen.width*6/7;
               var option = "height=" + height + ", width=" + width + ",toolbar=no,scrollbars=yes,menubar=no,left="+(window.screen.width- width)/2+",top=0"; 
               return window.open(url,winName,option); 
         }

        /**
         * 特点: 居中,无状态栏,无工具条,自定义打消
         */
         function openWinWithHW(url,winName,height,width)
         {
               var option = "height=" + height + ", width=" + width + ",toolbar=no,scrollbars=auto,menubar=no,left="+(window.screen.width- width)/2+",top="+(window.screen.height-height)/2; 
               return window.open(url,winName,option); 
         }

         /**
         * 特点: 居中,无状态栏,无工具条,自定义打消,位置是鼠标点击的地方
         */
         function openWinWithHWInClickXY(url,winName,height,width)
         {
               var option = "height=" + height + ", width=" + width + ",toolbar=no,scrollbars=no,menubar=no,left="+event.screenX+",top="+event.screenY; 
               return window.open(url,winName,option); 
         }

        /**
         * 特点: 居中,无状态栏,无工具条,自定义打消,有滚动条
         */
         function openWinWithHWAndScrollBars(url,winName,height,width)
         {
               var option = "height=" + height + ", width=" + width + ",toolbar=no,scrollbars=yes,menubar=no,left="+(window.screen.width- width)/2+",top="+(window.screen.height-height)/2; 
               return window.open(url,winName,option); 
         }

        /**
         * 特点: 全屏,无状态栏,无工具条,自定义打消,居顶,左
         */
         function openWinWithHWTopLeft(url,winName,height,width)
         {
               var option = "height=" + height + ", width=" + width + ",toolbar=no,scrollbars=auto,menubar=no,left=0,top=0"; 
               return window.open(url,winName,option); 
         }

</script>
